<template>
  <div class="search">
    <slot name="left">
      <img src="../assets/search.png" alt="" />
    </slot>
    <slot name="right">
      <input type="text" placeholder="aoc显示器" v-focus />
    </slot>
  </div>
</template>

<style>
.search {
  width: 200px;
  height: 30px;
  border-radius: 15px;
  background-color: rgb(247, 247, 247);
}
.search img {
  margin-top: 5px;
  margin-left: 8px;
  width: 19px;
}
.search input {
  position: relative;
  float: right;
  border: none;
  height: 20px;
  width: 130px;
  background-color: rgba(247, 247, 247);
  margin-top: 5px;
  margin-right: 5px;
  padding-left: 10px;
  outline: none;
}
</style>